package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.BasBuilding;
import com.seawaterbt.ssm.mapper.BasBuildingMapper;
import com.seawaterbt.ssm.service.CzBasBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ycc
 * @since 2019-06-04
 */
@Service
public class CzBasBuildingServiceImpl extends ServiceImpl<BasBuildingMapper, BasBuilding> implements CzBasBuildingService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public List<BasBuilding> list(Wrapper<BasBuilding> queryWrapper) {
        return super.list(queryWrapper);
    }
}
